package com.future.common.api.admin.entry;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @ClassName : SysDictDetails
 * @Author : lby
 * @Date: 2020/12/16 13:55
 * @Description : 字典明细类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_dict_details")
public class SysDictDetails extends Model<SysDictDetails> {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典项id
     */
    @TableField(exist = false)
    private Integer dictId;

    /**
     * 字典名称
     */
    @TableField(exist = true)
    private String dictName;

    /**
     * 字典类型
     */
    @TableField(exist = true)
    private Integer dictType;

    /**
     * 创建时间
     */
    @TableField(exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 删除标志
     * 0:存在
     * 1：删除
     */
    @TableField(exist = true)
    @TableLogic
    private Integer delFlag;
    /**
     * 字典描述
     */
    @TableField(exist = true)
    private String dictDescribe;

    /**
     * 字典排序
     */
    @TableField(exist = true)
    private Integer dictSort;

    /**
     * 字典具体值
     */
    @TableField(exist = true)
    private Integer dictValue;
}
